<template>
  <div>
    <photo-config-item
      v-for="(item, index) in data"
      :key="index"
      :indicate="index"
      :data="item"
      @on-item-remove="onItemRemove"
    />
  </div>
</template>

<script>
import photoConfigItem from '@/components/photo/photoConfigItem'

export default {
  props: {
    data: {
      type: Array,
      default: () => {
        return []
      }
    }
  },
  components: {
    photoConfigItem
  },
  methods: {
    onItemRemove (index) {
      this.$emit('on-item-remove', index)
    }
  }
}
</script>

<style lang="scss" scoped>
</style>
